<?php
/**
 * @var \omnilight\scheduling\Schedule $schedule
 */
/**
 * 任务调度
 * crontab -e * * * * * php /path/to/yii schedule/run  1>> /dev/null 2>&1
 * @see
 */

// $schedule->command('migrate')->cron('* * * * *');

// $schedule->exec('composer self-update')->daily();

// 更新时间
$schedule->exec('ntpdate time.nist.gov')->cron('*/30 * * * *');

// 执行队列任务
$schedule->exec('php yii_dev job/do-quene-job')->cron('* * * * *');

// 备份数据
$schedule->exec('php yii_dev job/backup-by-demi')->cron('0 2 * * *');

// 从京东获取地区数据
$schedule->exec('php yii_dev job/update-area-by-jd')->cron('0 3 * * *');

// yiichina 签到
$schedule->exec('php yii_dev job/yiichina-sign')->cron('1 0 * * *');